package com.myschool.server.manager.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.myschool.server.dao.SubjectMasterDao;
import com.myschool.server.dao.support.BaseEntityDaoHibernate;
import com.myschool.server.manager.BaseManager;
import com.myschool.server.manager.SubjectMasterManager;
import com.myschool.server.model.SubjectMaster;

@Service
@Transactional
public class SubjectMasterManagerImpl extends BaseManager<SubjectMaster>
		implements SubjectMasterManager {

	@Autowired
	private SubjectMasterDao dao;

	@Override
	protected BaseEntityDaoHibernate getDao() {

		return (BaseEntityDaoHibernate) dao;
	}

	public List<SubjectMaster> retrieveAll() {
		return dao.getAll();
	}

}
